

<%@ page import="gestorcondominio.Residentes" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'residentes.label', default: 'Residentes')}" />
<title><g:message code="default.list.label" args="[entityName]" />
</title>
</head>
<body>
	<g:if test="${session?.user?.admin}">
		<div class="nav">
			<span class="menuButton"><a class="home"
				href="${createLink(uri: '/')}"><g:message
						code="default.home.label" /> </a> </span> <span class="menuButton"><g:link
					class="create" action="create">
					<g:message code="default.new.label" args="[entityName]" />
				</g:link> </span>
		</div>
	</g:if>
	<div class="body">
		<h1>
			<g:message code="default.list.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">${flash.message}</div>
		</g:if>
		<g:if test="${session?.user?.admin}">
			<div class="nav">
				<span class="menuButton"> <a class="home"
					href="${createLink(uri: '/')}">Home</a> </span> <span class="menuButton">
					<g:link class="create" action="create">
						<g:message code="default.new.label"? args=" [entityName]"?/>
					</g:link> </span>
			</div>
		</g:if>
		<div class="list">
			<table>
				<thead>
					<tr>
						
                            <g:sortableColumn property="id" title="${message(code: 'residentes.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="coDocumento" title="${message(code: 'residentes.coDocumento.label', default: 'Co Documento')}" />
                        
                            <g:sortableColumn property="noTipoDocumento" title="${message(code: 'residentes.noTipoDocumento.label', default: 'No Tipo Documento')}" />
                        
                            <g:sortableColumn property="noNombres" title="${message(code: 'residentes.noNombres.label', default: 'No Nombres')}" />
                        
                            <g:sortableColumn property="noApellidos" title="${message(code: 'residentes.noApellidos.label', default: 'No Apellidos')}" />
                        
                            <g:sortableColumn property="nuEdad" title="${message(code: 'residentes.nuEdad.label', default: 'Nu Edad')}" />
                        
					</tr>
				</thead>
				<tbody>
					<g:each in="${residentesInstanceList}" status="i"
						var="residentesInstance">
						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
							
                            <td><g:link action="show" id="${residentesInstance.id}">${fieldValue(bean: residentesInstance, field: "id")}</g:link></td>
                        
                            <td>${fieldValue(bean: residentesInstance, field: "coDocumento")}</td>
                        
                            <td>${fieldValue(bean: residentesInstance, field: "noTipoDocumento")}</td>
                        
                            <td>${fieldValue(bean: residentesInstance, field: "noNombres")}</td>
                        
                            <td>${fieldValue(bean: residentesInstance, field: "noApellidos")}</td>
                        
                            <td>${fieldValue(bean: residentesInstance, field: "nuEdad")}</td>
                        
						</tr>
					</g:each>
				</tbody>
			</table>
		</div>
		<div class="paginateButtons">
			<g:paginate total="${residentesInstanceTotal}" />
		</div>
	</div>
</body>
</html>
